package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:LoginLog.java
 * @description	:
 * @author		:pcnicky
 * @date		:2015年7月22日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Table(name = "T_LOGIN_LOG", schema = "DRGs")
public class LoginLog extends KoalaLegacyEntity{
	private static final long serialVersionUID = 6165557133209999388L;

	/**
	 * 空构造函数
	 */
	public LoginLog() {
		super();
	}

	/**
	 * @param LOGIN_ID
	 * @param LOGIN_USER_CODE
	 * @param LOGIN_USER_NAME
	 * @param LOGIN_IP
	 * @param LOGIN_TYPE
	 * @param LOGIN_TIME
	 */
	public LoginLog(String loginId, String loginUserCode, String loginUserName,
			String loginIp,String loginType,Date loginTime) {
		super();
		this.loginId = loginId;
		this.loginUserCode = loginUserCode;
		this.loginUserName = loginUserName;
		this.loginIp = loginIp;
		this.loginType = loginType;
		this.loginTime=loginTime;
	}
	
	// id
	@Id
	@Column(name = "LOGIN_ID", nullable = false)
	private String loginId;

	// 登录用户
	@Id
	@Column(name = "LOGIN_USER_CODE", nullable = false)
	private String loginUserCode;
	// 登录用户名称
	@Id
	@Column(name = "LOGIN_USER_NAME", nullable = false)
	private String loginUserName;
	// 登录ip
	@Id
	@Column(name = "LOGIN_IP", nullable = false)
	private String loginIp;
	// 登陆类型
	@Id
	@Column(name = "LOGIN_TYPE", nullable = false)
	private String loginType;
	// 登录时间
	@Id
	@Column(name = "LOGIN_TIME", nullable = false)
	private Date loginTime;
	
	
	
	/**
	 * @return the loginId
	 */
	public String getLoginId() {
		return loginId;
	}

	/**
	 * @param loginId the loginId to set
	 */
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	/**
	 * @return the loginUserCode
	 */
	public String getLoginUserCode() {
		return loginUserCode;
	}

	/**
	 * @param loginUserCode the loginUserCode to set
	 */
	public void setLoginUserCode(String loginUserCode) {
		this.loginUserCode = loginUserCode;
	}

	/**
	 * @return the loginUserName
	 */
	public String getLoginUserName() {
		return loginUserName;
	}

	/**
	 * @param loginUserName the loginUserName to set
	 */
	public void setLoginUserName(String loginUserName) {
		this.loginUserName = loginUserName;
	}

	/**
	 * @return the loginIp
	 */
	public String getLoginIp() {
		return loginIp;
	}

	/**
	 * @param loginIp the loginIp to set
	 */
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	/**
	 * @return the loginType
	 */
	public String getLoginType() {
		return loginType;
	}

	/**
	 * @param loginType the loginType to set
	 */
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	/**
	 * @return the loginTime
	 */
	public Date getLoginTime() {
		return loginTime;
	}

	/**
	 * @param loginTime the loginTime to set
	 */
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	/* (non-Javadoc)
	 * @see org.dayatang.domain.Entity#getId()
	 */
	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see org.openkoala.koala.commons.domain.KoalaBaseEntity#businessKeys()
	 */
	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}
}
